<!DOCTYPE HTML>
<html>
<head>
<#include "WEB-INF/view/_frag/meta.ftl">
<#include "WEB-INF/view/_frag/jscss.ftl">
<link href="${basePath}/assets/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="${basePath}/assets/h-ui.admin/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="${basePath}/assets/h-ui.admin/css/style.css" rel="stylesheet" type="text/css" />
<link href="${basePath}/assets/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
<link href="${basePath}/assets/h-ui.admin/skin/default/skin.css" rel="stylesheet" type="text/css" id="skin" />

<title>管理员管理</title>
</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 账号管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="page-container">
		<form action="${basePath}/systemUser/list" method="post" class="form form-horizontal">
			<div class="row cl">
				&nbsp;&nbsp;&nbsp;&nbsp;登录名：
				<input type="text" class="input-text radius" style="width:120px" id="" name="systemUser.login_name" value="${systemUser.login_name}">
				&nbsp;&nbsp;&nbsp;&nbsp;真实姓名：
				<input type="text" class="input-text radius" style="width:120px" id="" name="systemUser.real_name" value="${systemUser.real_name}">
				
				&nbsp;&nbsp;是否删除：
				<span class="select-box" style="width:130px">
					<select class="select valid " size="1" name="systemUser.deleted" aria-required="true" aria-invalid="false" style="width:120px">
						<option value="-1">请选择</option>
						<#if systemUser.deleted == 0>
						<option value="0" selected="selected">否 </option>
						<#else>
						<option value="0">否 </option>
						</#if>
						<#if systemUser.deleted == 1>
						<option value="1" selected="selected">是</option>
						<#else>
						<option value="1">是</option>
						</#if>
					</select>
				</span>
				&nbsp;&nbsp;&nbsp;&nbsp;<button type="submit" class="btn btn-success radius" id="" name="" ><i class="Hui-iconfont">&#xe665;</i> 查询</button>
			</div>
		</form>
 	 	<#if opeList?seq_contains(perms.PERM_MEMBER_ADD)></#if>	
  		<div class="cl pd-5 bg-1 bk-gray mt-20">
  			<span class="l"> <a href="${basePath}/systemUser/toOper" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加账号</a></span>
  		</div>
   		
		<div class="mt-20">
			<table id="data-list" class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr class="text-c">	 
						<th>登录名</th>
						<th>真实姓名</th>
						<th>性别</th>
						<th>手机</th>
						<th>是否删除</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<#list page.dataList as systemUser>
					<tr class="text-c"> 
						<td>${systemUser.login_name}</td>
						<td>${systemUser.real_name}</td>
						<td> 
						
							<#list page.sexs as sexs>
							<#if systemUser.sex == sexs.c_key>
								 ${sexs.c_value} 
		 
							</#if>
						</#list>
						</td>
						<td>${systemUser.mobile}</td>
						
						<!--<td>${member.role_name}</td> -->
						<td><#if systemUser.deleted == 0>否<#else>是</#if></td>
						<td class="td-manage">
						<#if opeList?seq_contains(perms.PERM_MEMBER_UPDATE)></#if> 
						<#if systemUser.login_name!='admin'>
							<a title="编辑" href="${basePath}/systemUser/toOper?systemUser.id=${systemUser.id}"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a>
							<a title="删除" href="javascript:;" onclick="del('${systemUser.id}')" class="ml-5" style="text-decoration: none"><i class="Hui-iconfont">&#xe6e2;</i></a>
						
						</#if> 
						<#if opeList?seq_contains(perms.PERM_ROLE_CONFIG)></#if>
						<!--  <a title="浏览权限" class="ml-5" style="text-decoration: none" onclick="location.href='${basePath}/systemUser/toPerm?systemUser.id=${systemUser.id}'" ><i class="Hui-iconfont">&#xe681;</i></a>
						-->	
						<#if opeList?seq_contains(perms.PERM_MEMBER_DEL)> </#if>
							
						</td>
					</tr>
					</#list>
				</tbody>
			</table>
		</div>
		<div class="pd-5 mt-20" id="jsPage"></div>
	</div> 

<script type="text/javascript">
	${page.jsPage}

	function del(id) {
		layer.confirm('确定要删除吗？', {
				btn : [ '确定', '取消' ]
			}, function() {
				window.location.href = '${basePath}/systemUser/delete?systemUser.id=' + id;
			}, function() {
			});
	}

</script> 
</body>
</html>